﻿using ALMDDD.Domain.Valications.SysUser;
using System;
using System.Collections.Generic;
using System.Text;

namespace ALMDDD.Domain.Commands.SysUser
{
    public class AddUserCommand : SysUserCommand
    {
        public AddUserCommand(Guid id, string userId, string userName, string gender, string pwd, string email, string phone, DateTime trxTime)
        {
            Id = id;
            UserName = userName;
            UserId = userId;
            Gender = gender;
            PassWord = pwd;
            Email = email;
            Phone = phone;
            TrxTime = trxTime;
        }

        public override bool IsValid()
        {
            ValidationResult = new AddSysUserCommandValidation().Validate(this);
            return ValidationResult.IsValid;
        }
    }
}
